﻿using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using Mathmall.Administration.Vo;

namespace Mathmall.Administration.Models
{
    /// <summary>
    ///  商品三级分类
    /// </summary>
    public class CategoryVo : BaseVo
    {
        /// <summary>
        ///  分类id
        /// </summary>
        public int CategoryID { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 父分类id
        /// </summary>
        public int? ParentCID { get; set; }

        /// <summary>
        /// 层级
        /// </summary>
        public int? CatLevel { get; set; }

        /// <summary>
        /// 是否显示（false-不显示，true-显示）
        /// </summary>
        public bool? ShowStatus { get; set; }

        /// <summary>
        ///  排序
        /// </summary>
        public int? Sort { get; set; }

        /// <summary>
        ///  图标地址
        /// </summary>
        public string? Icon { get; set; }

        /// <summary>
        /// 计量单位
        /// </summary>
        public string? ProductUnit { get; set; }

        /// <summary>
        ///  商品数量
        /// </summary>
        public int? ProductCount { get; set; }

        /// <summary>
        /// 子分类
        /// </summary>
        public List<CategoryVo> Children { get; set; } = new List<CategoryVo>();
    }
}